package ysq.xyg.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 网站部分-产品
 */
@Table(name = "web_product")
@Data
@NoArgsConstructor
public class Product implements Serializable {

    @Id
    private String id;

    /**
     * 标题
     */
    private String title;

    /**
     * 封面图片
     */
    @Column(name = "show_pic")
    private String showPic;
    /**
     * 产品图片
     */
    @Column(name = "product_pic")
    private String productPic;
    /**
     * 介绍
     */
    private String description;
    private int num;
    /**
     * 产品介绍
     */
    private String content;
    /**
     * 产品价格
     */
    private Double money;
    /**
     * 预付金额
     */
    @Column(name = "pay_money")
    private Double payMoney;
    /**
     * 机构介绍
     */
    @Column(name = "org_desc")
    private String orgDesc;
    /**
     * 注意介绍
     */
    @Column(name = "notice")
    private String notice;
    /**
     * 状态：1、儿童疫苗，2、成人疫苗
     */
    private String type;
    /**
     * 状态：1、有效，2、无效
     */
    private String status;

    private int sort;

    @Column(name = "create_time")
    private Date createTime;

    public Product(String type, String status) {
        this.type = type;
        this.status = status;
    }

    public Product(String status) {
        this.status = status;
    }
}